package com.aspose.cells;

class zbiu extends zck {
   zbiu(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7 = Math.min(var4, var5);
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var6 = var7 * (com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F);
         } else {
            var6 = var7 * 0.5F;
         }
      } else {
         var6 = var7 * 0.5F;
      }

      com.aspose.cells.b.a.b.a.ze var8 = new com.aspose.cells.b.a.b.a.ze();
      float var9 = (var5 - var6) / 2.0F;
      com.aspose.cells.b.a.b.zo[] var10 = new com.aspose.cells.b.a.b.zo[5];
      switch(this.e.b) {
      case 1:
      case 2:
         var10[0] = new com.aspose.cells.b.a.b.zo(var2, var3);
         var10[1] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var6, var3);
         var10[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 / 2.0F);
         var10[3] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var6, var3 + var5);
         var10[4] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5);
         var8.b(var10);
         break;
      case 3:
      case 4:
         var10[0] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3);
         var10[1] = new com.aspose.cells.b.a.b.zo(var2 + var6, var3);
         var10[2] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 / 2.0F);
         var10[3] = new com.aspose.cells.b.a.b.zo(var2 + var6, var3 + var5);
         var10[4] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5);
         var8.a(var10[0], var10[1]);
         var8.a(var10[1], var10[2]);
         var8.a(var10[2], var10[3]);
         var8.a(var10[3], var10[4]);
         var8.a(var10[4], var10[0]);
      }

      return var8;
   }
}
